//package com.fs.system.security;
//
//import com.fs.common.core.pojo.SysUser;
//import com.fs.common.core.vo.LoginUser;
//import com.fs.system.service.ISysUserService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.security.core.userdetails.UserDetails;
//import org.springframework.security.core.userdetails.UserDetailsService;
//import org.springframework.security.core.userdetails.UsernameNotFoundException;
//import org.springframework.stereotype.Service;
//
//@Service
//public class UserDetailsServiceImpl implements UserDetailsService {
//    @Autowired
//    private ISysUserService userService;
//
//    @Override
//    public UserDetails loadUserByUsername(String userName) throws UsernameNotFoundException {
//        SysUser sysUser = userService.selectUserByUserName(userName);
//        LoginUser loginUser = new LoginUser();
//        loginUser.setUser(sysUser);
//
//        return loginUser;
//    }
//}
